package cn.pxy.ysframework.web.Service.Impl;

import cn.pxy.ysframework.web.Entity.Comment;
import cn.pxy.ysframework.web.Repository.ICommentDao;
import cn.pxy.ysframework.web.Service.ICommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentService implements ICommentService {
    @Autowired
    private ICommentDao commentDao;

    @Override
    public Comment save(Comment comment) {
        return commentDao.save(comment);
    }

    @Override
    public List<Comment> findAllByCard(String id) {
        return commentDao.findAllByCard(id);
    }
}
